libxc: use new (replacement) mmap-batch ioctl
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 13 Jan 2010 08:12:56 +0000 (08:12 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 13 Jan 2010 08:12:56 +0000 (08:12 +0000)
commit9fececad98aa1259a9896edf7e7931822e3eef87
tree5f7b5081edfee2647be16264a12e48c10465fc82
parentd092fb82a229773dad917f5a6eaa3cced9054d19
libxc: use new (replacement) mmap-batch ioctl

Replace all calls to xc_map_foreign_batch() where the caller doesn't
look at the passed in array to check for errors by calls to
xc_map_foreign_pages(). Replace all remaining calls by such to the
newly introduced xc_map_foreign_bulk().

As a sideband modification (needed while writing the patch to ensure
they're unused) eliminate unused parameters to
uncanonicalize_pagetable() and xc_map_foreign_batch_single(). Also
unmap live_p2m_frame_list earlier in map_and_save_p2m_table(),
reducing the peak amount of virtual address space required.

All supported OSes other than Linux continue to use the old ioctl for
the time being.

Also change libxc's MAJOR to 4.0 to reflect the API change.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
tools/include/xen-sys/Linux/privcmd.h
tools/libxc/Makefile
tools/libxc/xc_domain_restore.c
tools/libxc/xc_domain_save.c
tools/libxc/xc_linux.c
tools/libxc/xc_misc.c
tools/libxc/xc_resume.c
tools/libxc/xenctrl.h
tools/xenpaging/xenpaging.c